package JavaDesign.report_finish;

/**
 * @author zouran
 * createDate：2023/12/22  11:09
 */

public class Student extends User {

    public Student(String name, String identity, String clazz) {
        super(name, identity, clazz);
    }

    @Override
    void accept(Visitor visitor) {
        super.accept(visitor);
        visitor.visit(this);
    }

    public int ranking() {
        return (int) (Math.random() * 100);
    }

}
